<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 10/26/12
 * Time: 11:03 PM
 * To change this template use File | Settings | File Templates.
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// import joomla controller library
jimport('joomla.application.component.controller');

JLoader::register('VastHelper', JPATH_COMPONENT . '/helpers/vhelper.php');
JLoader::register('JVastLog', JPATH_COMPONENT . '/helpers/jvastlog.php');
JLoader::register('JVastConfig', JPATH_COMPONENT . '/helpers/jvastconfig.php');

// Get an instance of the controller prefixed by Vast
$controller = JController::getInstance('Vast');

// Perform the Request task
$input = JFactory::getApplication()->input;
$controller->execute($input->getCmd('task'));

// Redirect if set by the controller
$controller->redirect();
